# 读取json文件的工具
import json


from config import base_path


def read_json_file(failname):
    with open(failname,"r",encoding="utf-8") as f:
        json_data=json.load(f)
        data_list=[]
        for i in json_data:
            tup=tuple(i.values())
            data_list.append(tup)
        return data_list



if __name__ == '__main__':
    failname = base_path + "/data/addemp.json"
    data = read_json_file(failname)
    print(data)